.class Lcom/brixd/niceapp/activity/BaseDetailActivity$6;
.super Ljava/lang/Object;
.source "BaseDetailActivity.java"

# interfaces
.implements Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$OnCommentLongClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/BaseDetailActivity;->initWidgetsAction2()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/BaseDetailActivity;

    .prologue
    .line 548
    iput-object p1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onLongClick(Landroid/view/View;Lcom/brixd/niceapp/model/DetailModel;)V
    .registers 8
    .param p1, "v"    # Landroid/view/View;
    .param p2, "detailModel"    # Lcom/brixd/niceapp/model/DetailModel;

    .prologue
    .line 552
    invoke-virtual {p2}, Lcom/brixd/niceapp/model/DetailModel;->getCommentModel()Lcom/brixd/niceapp/model/CommentModel;

    move-result-object v0

    .line 553
    .local v0, "commentModel":Lcom/brixd/niceapp/model/CommentModel;
    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    if-eqz v3, :cond_44

    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/UserModel;->getUid()I

    move-result v3

    invoke-virtual {v0}, Lcom/brixd/niceapp/model/CommentModel;->getAuthorUser()Lcom/brixd/niceapp/model/CommonUserModel;

    move-result-object v4

    invoke-virtual {v4}, Lcom/brixd/niceapp/model/CommonUserModel;->getUserId()I

    move-result v4

    if-ne v3, v4, :cond_44

    .line 554
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 555
    .local v1, "items":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    const v4, 0x7f0c0053

    invoke-virtual {v3, v4}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 556
    new-instance v2, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v3}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3, v1}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;-><init>(Landroid/content/Context;Ljava/util/List;)V

    .line 557
    .local v2, "menu":Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;
    new-instance v3, Lcom/brixd/niceapp/activity/BaseDetailActivity$6$1;

    invoke-direct {v3, p0, v2, p2, v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity$6$1;-><init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$6;Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;Lcom/brixd/niceapp/model/DetailModel;Lcom/brixd/niceapp/model/CommentModel;)V

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 565
    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->show()V

    .line 582
    :goto_43
    return-void

    .line 568
    .end local v1    # "items":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    .end local v2    # "menu":Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;
    :cond_44
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 569
    .restart local v1    # "items":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    const v4, 0x7f0c0052

    invoke-virtual {v3, v4}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 570
    new-instance v2, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v3}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3, v1}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;-><init>(Landroid/content/Context;Ljava/util/List;)V

    .line 571
    .restart local v2    # "menu":Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;
    new-instance v3, Lcom/brixd/niceapp/activity/BaseDetailActivity$6$2;

    invoke-direct {v3, p0, v2, v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity$6$2;-><init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$6;Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;Lcom/brixd/niceapp/model/CommentModel;)V

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 579
    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->show()V

    goto :goto_43
.end method
